import React, { Suspense } from 'react';
import { HashRouter, Route, Switch } from 'react-router-dom';
import Layouts from './layouts';
import './App.less';

function App() {
  return (
    <div className="App">
      <HashRouter>
        <Suspense fallback={<div>Loading...</div>}>
          <Switch>
            <Route path="/" children={()=><Layouts />}></Route>
          </Switch>
        </Suspense>
      </HashRouter>
    </div>
  );
}

export default App;
